<?php
namespace app\common\validate;
use think\Validate;
class Convert extends Validate
{
    protected $rule =   [
        'title'  => 'require',
        'price'   => 'require',
        'enddate'=>'require'
    ];

    protected $msg  =   [
        'title.require' => '商品名称不能为空',
        'price'   => '商品价格不能为空',
        'enddate'   => '到期时间不能为空'
    ];


}